Skip to content

恢复模块高级 - UnhideModuleEx

函数简介

恢复通过 HideModuleEx 在目标进程中隐藏的模块,并释放对应隐藏上下文。

接口名称

UnhideModuleEx

DLL调用

c
int UnhideModuleEx(long instance, long hwnd, long ctx);

参数说明

参数名类型说明
instance长整数型OLAPlug实例指针,由 CreateCOLAPlugInterFace 接口生成。
hwnd长整数型目标窗口句柄,须与 HideModuleEx 指向同一进程。
ctx长整数型隐藏上下文句柄,由 HideModuleEx 返回,只能使用一次,不可重复释放。

示例

SDK 调用

cpp
#include "OLAPlugServer.h"

OLAPlugServer ola;
int ret = ola.UnhideModuleEx(hwnd, handle);
csharp
using OLAPlug;

var ola = new OLAPlugServer();
int ret = ola.UnhideModuleEx(hwnd, handle);
python
from OLAPlugServer import OLAPlugServer

ola = OLAPlugServer()
ret = ola.UnhideModuleEx(hwnd, handle)
java
import com.olaplug.OLAPlugServer;

OLAPlugServer ola = new OLAPlugServer();
int ret = ola.UnhideModuleEx(hwnd, handle);
go
import "github.com/ola/olaplug/olaplug"

ola, _ := olaplug.NewOLAPlugServer("OLAPlug_x64.dll")
defer ola.ReleaseObj()
ret := ola.UnhideModuleEx(hwnd, handle)
rust
use olaplug::OLAPlugServer;

let ola = OLAPlugServer::new("OLAPlug_x64.dll").unwrap();
let ret = ola.unhide_module_ex(hwnd, handle);
cpp
var ola = com("OlaPlug.OlaSoft")
var ret = ola.UnhideModuleEx(hwnd, handle)
vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
ret = ola.UnhideModuleEx(hwnd, handle)
text
.局部变量 ola, OLAPlug
ola.创建 ()
ret = ola.UnhideModuleEx(hwnd, handle)
aardio
import OLAPlugServer;
var ola = OLAPlugServer();
var ret = ola.UnhideModuleEx(hwnd, handle);
text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
整数 ret = ola.UnhideModuleEx(hwnd, handle)
cpp
#include "OLAPlugServer.h"

OLAPlugServer ola;
int32_t ret = ola.UnhideModuleEx(hwnd, handle);

原生 DLL 调用

cpp
UnhideModuleEx(instance, hwnd, handle);
csharp
using System.Runtime.InteropServices;

[DllImport("OLAPlug_x64.dll", CallingConvention = CallingConvention.StdCall)]
static extern int UnhideModuleEx(long ola, long hwnd, long ctx);

UnhideModuleEx(instance, hwnd, handle);
python
from ctypes import CDLL, c_int64

ola = CDLL("OLAPlug_x64.dll")
ola.UnhideModuleEx(instance, hwnd, handle)

返回值

返回值说明
1成功。
0失败。

注意事项

项目说明
上下文来源ctx 必须由 HideModuleEx 生成。
进程一致hwnd 须与隐藏时同一目标进程。
不可重复释放释放后模块恢复显示,不可再次用同一 ctx 调用。